package class_wuziqi;

import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.util.ArrayList;

public class ChatRecord<E> extends ArrayList<E>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	PropertyChangeSupport pcs=new PropertyChangeSupport(this);
	
	public boolean add(E e) {
		pcs.firePropertyChange("add", null, e);
		return super.add(e);
	}
	public void addPropertyChangeListener(PropertyChangeListener listener){
		pcs.addPropertyChangeListener(listener);
	}
}
